<KeyListEntry name="toggle-message-tray"
_description="Show the message tray"/>
+ <KeyListEntry name="focus-active-notification"
+ _description="Focus the active notification"/>
+
<KeyListEntry name="toggle-application-view"
_description="Show all applications"/>
Keybinding to toggle the visibility of the message tray.
</_description>
</key>
+ <key name="focus-active-notification" type="as">
+ <default>["<Super>n"]</default>
+ <_summary>Keybinding to focus the active notification</_summary>
+ <_description>
+ Keybinding to focus the active notification.
+ </_description>
+ </key>
<key name="toggle-recording" type="as">
<default><![CDATA[['<Control><Shift><Alt>r']]]></default>
<_summary>Keybinding to toggle the screen recorder</_summary>
new Gio.Settings({ schema: SHELL_KEYBINDINGS_SCHEMA }),
Meta.KeyBindingFlags.NONE,
Lang.bind(this, this.toggleAndNavigate));
+ global.display.add_keybinding('focus-active-notification',
+ new Gio.Settings({ schema: SHELL_KEYBINDINGS_SCHEMA }),
+ Meta.KeyBindingFlags.NONE,
+ Lang.bind(this, this._expandActiveNotification));
this._summaryItems = [];
this._chatSummaryItemsCount = 0;
notification.destroy(NotificationDestroyedReason.EXPIRED);
},
+ _expandActiveNotification: function() {
+ if (!this._notification)
+ return;
+
+ this._expandNotification(false);
+ },
+
_expandNotification: function(autoExpanding) {
// Don't grab focus in notifications that are auto-expanded.
if (!autoExpanding)